package info.akabana.yui.examples.fx3.empinfo.behavior
{
	import info.akabana.yui.examples.fx3.empinfo.helper.EmpInfoSetHelper;
	
	import mx.collections.ArrayCollection;
	
	import org.seasar.akabana.yui.framework.ns.handler;

	public class EmpInfoInitializedBehavior
	{
		
		public var helper:EmpInfoSetHelper;
		
		handler function on_viewInitialized():void {
			
			setMockPostionData();
		}
		
		private function setMockPostionData():void {
			var position:Array = [
				{label:''},
				{label:'General Manager', code:'0000'},
				{label:'Manager', code:'0001'},
				{label:'Chief', code:'0002'},
				{label:'Staff', code:'0003'}
			];
			helper.setPosition(new ArrayCollection(position));
		}
	}
}